package com.taoyuan.hotel.dao;

import com.taoyuan.hotel.entity.Department;

import java.util.List;

public interface DepartmentDao {
    //新增
    int add(Department department);
    //查询
    List<Department> all();
    //删除
    int del(int id);
    //修改
    int update(Department department);
    //查询，带条件
    List<Department> selectWhere(String deptNme);
    //批量删除
    int delBatch(int[] ids);
}
